/*
 * @(#)BaseHibernateDAO.java	2013-5-4 下午4:57:17
 * intranet
 * Copyright 2013 Thuisoft, Inc. All rights reserved.
 * THUNISOFT PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */
package com.thunisoft.intranet.common.dao.impl;

import org.hibernate.Session;
import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;

import com.thunisoft.intranet.common.dao.IBaseHibernateDAO;

/**
 * BaseHibernateDAO
 * 
 * @author ice
 * @version 1.0
 * 
 */
public class BaseHibernateDAOImpl implements IBaseHibernateDAO {

    @Autowired
    private SessionFactory sessionFactory;

    /*
     * (non-Javadoc)
     * 
     * @see com.thunisoft.intranet.common.dao.IBaseHibernateDAO#getSession()
     */
    @Override
    public Session getSession() {
        return sessionFactory.openSession();
    }

}
